package pl.poznan.put.cs.to.tsp.listeners;

import java.util.LinkedList;

import pl.poznan.put.cs.to.tsp.common.Vertexes;

public class TSPWindowListener implements TSPListener {
	private GraphicWindow graphicWindow;

	public TSPWindowListener(GraphicWindow graphicWindow) {
		this.graphicWindow = graphicWindow;
	}

	public void solutionGenerated(LinkedList<Integer> listA,
			LinkedList<Integer> listB, Vertexes vertexes) {
		this.graphicWindow.paintSolution(listA, listB, vertexes);
//		try {
//			Thread.sleep(1000);
//		} catch (InterruptedException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
	}
}
